package com.tron.dobest;


import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;


/**
 * 动态数据源配置时需要排除自动数据源配置
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableCaching
@EnableAsync
@EnableRabbit   //启动创建和删除交换器，队列，绑定规则
public class TronApplication {

    public static void main(String[] args) {
        SpringApplication.run(TronApplication.class, args);
    }


}
